package com.sc.VenusQueryBeta.presenter.hotel;

import com.sc.VenusQueryBeta.contract.hotel.HotelContract;
import com.sc.VenusQueryBeta.model.hotel.HotelModel;

/**
 * Created by SC-02 on 2018/9/19.
 * 主页presenter 继承契约类的presenper
 */


public class HotelPresenter extends HotelContract.HotelPresenter {

    /**
     * 实例化对象
     */
    public static HotelPresenter newInstance() {
        return new HotelPresenter();
    }

    @Override
    public void getTabList() {
        if (mIView == null || mIModel == null)
            return;
        mIView.showTabList(mIModel.getTabs());

    }

    @Override
    protected HotelContract.IHotelModel getModel() {
        return HotelModel.newInstance();
    }

    @Override
    public void onStart() {

    }
}
